package cn.schoolwow.quickdao.test.module.business.user.transaction.commit.testcase;

import cn.schoolwow.quickdao.test.module.business.user.ddl.flow.column.CheckCreateNumberColumnResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.add.RebuildUserFlow;
import cn.schoolwow.quickdao.test.module.business.user.transaction.commit.flow.CommitCreateNumberColumnTransactionFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class CreateNumberColumnTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new RebuildUserFlow())
                .next(new CommitCreateNumberColumnTransactionFlow())
                .next(new CheckCreateNumberColumnResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "提交创建工号字段事务操作测试用例";
    }
}
